﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Gargoyle.ZZT
{
    public struct Tile
    {
        public byte Element;
        public byte Color;

        public Tile(byte newElement, byte newColor)
        {
            Element = newElement;
            Color = newColor;
        }

        public static bool operator ==(Tile t1, Tile t2)
        {
            return ((t1.Element == t2.Element) && (t1.Color == t2.Color));
        }

        public static bool operator !=(Tile t1, Tile t2)
        {
            return ((t1.Element != t2.Element) || (t1.Color != t2.Color));
        }

        public override bool Equals(object obj)
        {
            return base.Equals(obj);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public override string ToString()
        {
            return "Tile (Element=" + Element.ToString() + ", Color=" + Color.ToString() + ")";
        }
    }
}
